package com.itheima.list_set;

import java.util.ArrayList;
import java.util.Collections;

public class CollectionsTest {

    /**
     * Collections 工具类
     * @param args
     */
    public static void main(String[] args) {
        demo1();
    }


    private static void demo1() {
        ArrayList<String> strings = new ArrayList<>();
        Collections.addAll(strings, "1", "2", "3", "9", "10", "-100");
        System.out.println(strings);

        Collections.sort(strings);

        System.out.println(strings);
    }
}
